package controllers

import (
	"fly/service"
	"net/url"
)

// SysLogAdminLoginController 登录日志
type SysLogAdminLoginController struct {
	BaseController
	SysLogAdminLoginService service.SysLogAdminLoginService
}

// Index ...
// @Title 字典查询
// @Description 字典查询
// @Param token header  string	false "授权Token"
// @Param page query  string false "当前页"
// @Param pageSize query  string false "分页大小"
// @Param userName query  string false "用户账号"
// @Success 200 {object} service.Pagination
// @router / [get]
func (c *SysLogAdminLoginController) Index() {
	params, _ := url.ParseQuery(c.Ctx.Request.URL.RawQuery)
	data, pagination := c.SysLogAdminLoginService.GetPaginateData(params)
	pagination.List = data
	c.Success(pagination)
}
